package com.work.order.feign.fallback;

import com.work.order.feign.AccountFeignClient;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author moon
 * 不用单独处理service的方法,配置
 */
//@Component
public class AccountFeignFallback implements AccountFeignClient {

    @Override
    public Boolean reduce(String userId, BigDecimal money) {
        System.out.println("--账户兜底--");
        return false;
    }
}


